import worker from '@ohos.worker';

const workerPort = worker.workerPort

workerPort.onmessage = function(e) {
    let data = e.data;
    console.log("taobao worker.ts onmessage");

    workerPort.postMessage("123")
}

workerPort.onerror = function(e) {
    console.log("taobao worker.ts onerror");
}